# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time

  # See ActionController::RequestForgeryProtection for details
  # Uncomment the :secret if you're not using the cookie session store
  protect_from_forgery # :secret => '4609cc9048fe829be489e3eb9341bdc6'

  # TODO: Load the email based on who is logged in
  def customer_email_address
    "bugsbunny@disney.com"
  end
  # TODO: Load customer record for the logged in user and save the customer_cim_id here
  def find_customer
    Customer.find :first
  end
  # TODO : Replace the login username here with live production values
  def zgateway
    ActiveMerchant::Billing::AuthorizeNetGateway.new(
      :login => "6aJ353jwUn3",
      :password => "33g5C6yP36k2Qh5X")
  end
  
end